package com.bean;

import com.bean.anno.TableExcel;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@Entity
@Table(name = "plan_info")
@TableExcel(name="planInfo", content = "EasyExcel计划信息",jpaBeanName="com.mapper.repository.PlanInfoRepository")
public class PlanInfo {

    @Id
    private String id;

    @Column(length = 1000)
    private String description;

    private String status;//状态

    private int sortnum;//排序编号

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createtime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatetime;

    @JsonProperty("userid")
    private String creator;

}
